package com.fly.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Circuitry {
    //线路Id
    private Integer circuitryId;
    //线路编号
    private String circuitryNo;
    //线路名
    private String circuitryName;
    //考虑到效率问题，这里一条线路对应一个起始杆和一个结束杆，单方面表现为一对一关系映射
    //该线路对应的起始杆的实体对象
    private Pole startPole;
    //该线路对应的结束杆的实体对象
    private Pole endPole;
    //杆塔数量
    private Integer poleNumber;
    //运行状态
    private String runningStatus;
    //启用状态1
    private SystemPropertiesValue systemPropertiesValue;

    private SystemProperties systemProperties; //所属系统配置的id
    //线路负责人id  一条线路对应一个负责人，一个负责人对应多条线路(线路对负责人表现为一对多的关系)
    //负责人实体对象
    private Users user;
    //线路长度
    private Double lineLength;
    //回路长度
    private Double backLineLength;
    //投运日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deLiveryDate;
    //电压等级 单位kv
    private Double voltageLevelId;
    //备注
    private String circuitryNote;
    //完好率 0-1
    private Double goodRate;

    public String getRunningStatus() {
        return runningStatus;
    }

    public void setRunningStatus(String runningStatus) {
        this.runningStatus = runningStatus;
    }

    public Integer getCircuitryId() {
        return circuitryId;
    }

    public void setCircuitryId(Integer circuitryId) {
        this.circuitryId = circuitryId;
    }

    public String getCircuitryNo() {
        return circuitryNo;
    }

    public void setCircuitryNo(String circuitryNo) {
        this.circuitryNo = circuitryNo;
    }

    public String getCircuitryName() {
        return circuitryName;
    }

    public void setCircuitryName(String circuitryName) {
        this.circuitryName = circuitryName;
    }

    public Pole getStartPole() {
        return startPole;
    }

    public void setStartPole(Pole startPole) {
        this.startPole = startPole;
    }

    public Pole getEndPole() {
        return endPole;
    }

    public void setEndPole(Pole endPole) {
        this.endPole = endPole;
    }

    public Integer getPoleNumber() {
        return poleNumber;
    }

    public void setPoleNumber(Integer poleNumber) {
        this.poleNumber = poleNumber;
    }

    public SystemProperties getSystemProperties() {
        return systemProperties;
    }

    public void setSystemProperties(SystemProperties systemProperties) {
        this.systemProperties = systemProperties;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public Double getLineLength() {
        return lineLength;
    }

    public void setLineLength(Double lineLength) {
        this.lineLength = lineLength;
    }

    public Double getBackLineLength() {
        return backLineLength;
    }

    public void setBackLineLength(Double backLineLength) {
        this.backLineLength = backLineLength;
    }

    public Date getDeLiveryDate() {
        return deLiveryDate;
    }

    public void setDeLiveryDate(Date deLiveryDate) {
        this.deLiveryDate = deLiveryDate;
    }

    public Double getVoltageLevelId() {
        return voltageLevelId;
    }

    public void setVoltageLevelId(Double voltageLevelId) {
        this.voltageLevelId = voltageLevelId;
    }

    public String getCircuitryNote() {
        return circuitryNote;
    }

    public void setCircuitryNote(String circuitryNote) {
        this.circuitryNote = circuitryNote;
    }

    public Double getGoodRate() {
        return goodRate;
    }

    public void setGoodRate(Double goodRate) {
        this.goodRate = goodRate;
    }

    public SystemPropertiesValue getSystemPropertiesValue() {
        return systemPropertiesValue;
    }

    public void setSystemPropertiesValue(SystemPropertiesValue systemPropertiesValue) {
        this.systemPropertiesValue = systemPropertiesValue;
    }
}
